package com.Principal;
 
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
 
public class ControlSqlite extends SQLiteOpenHelper {
 
   private static int version = 1;
   private static String name = "USUARIO" ;
   private static CursorFactory factory = null;
 
   public ControlSqlite(Context context)
   {
      super(context, name, factory, version);
   }
 
   @Override
   public void onCreate(SQLiteDatabase db)
   {
      Log.i(this.getClass().toString(), "Creando base de datos");
    
      db.execSQL( "CREATE TABLE USUARIO(" +
             " nombre TEXT NOT NULL, " +
             " contraseña TEXT NOT NULL)" );
    
     
      Log.i(this.getClass().toString(), "Tabla USUARIO creada");

   }
 
   @Override
   public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
   {
 
   }
}